package com.project.bean;

import java.time.LocalDate;

/**
 * @author lyl
 * description:班级实体bean
 */
public class ClassBean {

    /**
     * 班级id
     */
    private int classId;

    /**
     * 班级名称
     */
    private String className;

    /**
     * 班级创建日期
     */
    private LocalDate creatDate = LocalDate.now();

    /**
     * 教师姓名
     */
    private String teacher;

    public ClassBean() {
    }

    public ClassBean(String className, String teacher) {
        this.className = className;
        this.teacher = teacher;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public LocalDate getCreatDate() {
        return creatDate;
    }

    public void setCreatDate(LocalDate creatDate) {
        this.creatDate = creatDate;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "ClassBean{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                ", creatDate=" + creatDate +
                ", teacher='" + teacher + '\'' +
                '}' + "\n";
    }
}
